import request from '@/utils/request'

// 查询DepartmentsVideo列表
export function listDepartmentsVideo(query) {
  return request({
    url: '/video/DepartmentsVideo/list',
    method: 'get',
    params: query
  })
}

// 查询DepartmentsVideo详细
export function getDepartmentsVideo(id) {
  return request({
    url: '/video/DepartmentsVideo/' + id,
    method: 'get'
  })
}

// 新增DepartmentsVideo
export function addDepartmentsVideo(data) {
  return request({
    url: '/video/DepartmentsVideo',
    method: 'post',
    data: data
  })
}

// 修改DepartmentsVideo
export function updateDepartmentsVideo(data) {
  return request({
    url: '/video/DepartmentsVideo',
    method: 'put',
    data: data
  })
}

// 删除DepartmentsVideo
export function delDepartmentsVideo(id) {
  return request({
    url: '/video/DepartmentsVideo/' + id,
    method: 'delete'
  })
}

export function uploadFileVideo(data) {
  return request({
    url: '/file/upload',
    method: 'post',
    data:data
  })
}
